import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
import loadmore from '@/components/loadmore.vue';
import nomore from '@/components/nomore.vue';
import listCell from '@/components/list-cell.vue';
import scrollTop from '@/components/scroll-top.vue'
import divider from '@/components/divider.vue'
import lineHeight from '@/components/lineHeight.vue'

Vue.component('loadmore', loadmore);
Vue.component('nomore', nomore);
Vue.component('list-cell', listCell);
Vue.component('scrollTop', scrollTop);
Vue.component('divider', divider);
Vue.component('line-height', lineHeight);

import * as Api from './util/api.js';
import * as comm from './util/common.js';
import * as config from './util/config.js';
import * as db from './util/db.js';
import validate from './util/validate.js';
import store from './store'
Vue.prototype.$common = comm;
Vue.prototype.$api = Api;
Vue.prototype.$url = config;
Vue.prototype.$store = store;
Vue.prototype.$db = db;
Vue.prototype.$validate = validate;

App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
